'''
Created on 2011-9-23

@author: 123kangta
'''
from test import generator
import unittest
from core.container import DefaultContainer
from core.session import Session

socket_server = generator.create_socket_server()
applicationContext = DefaultContainer()

class SessionTest(unittest.TestCase):
    def test_generate_session_id(self):
        socket = generator.create_socket();
        session = Session(socket, applicationContext, *("127.0.0.1", ""), handle=generator.create_handle())
        self.assertIsNotNone(session.sid);
